package cn.tedu.knows.portal.service;

import cn.tedu.knows.portal.model.Answer;
import cn.tedu.knows.portal.vo.AnswerVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tedu.cn
 * @since 2021-11-26
 */
public interface IAnswerService extends IService<Answer> {
    // 新增回答的业务逻辑层方法
    Answer saveAnswer(AnswerVO answerVO,String username);

    //根据问题id查询所有回答的方法
    List<Answer> getAnswersByQuestionId(Integer questionId);

}
